package library.controller;

import library.controller.book;

abstract class Person {
    public String name;
    public String sex;
    public int age;

    public static book[] books= new book[] {//默认定义书籍
            new book("西游记","吴承恩",10,"名著",true),
            new book("红楼梦","曹雪芹",20,"名著",true),
            new book("三国演义","罗贯中",15,"名著",true),
            new book("小茗同学","小明",5,"杂志",true)
    };

    public Person(String name,String sex,int age) {
        this.age=age;
        this.name=name;
        this.sex=sex;
    }

    public String getName() {
        // TODO Auto-generated method stub
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getSex() {
        // TODO Auto-generated method stub
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        // TODO Auto-generated method stub
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    public abstract void operate() ;

}
